package com.wskh.edu.client.impl;

import com.wskh.edu.client.UcenterClient;
import com.wskh.edu.mapper.CommentMapper;
import com.wskh.edu.service.CommentService;
import com.wskh.eduCenter.entity.UcenterMember;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class UcenterClientImpl implements UcenterClient {

    @Autowired
    CommentMapper commentMapper;

    @Override
    public UcenterMember getInfoUc(String id) {
        System.out.println("服务降级了 id = "+id);
        return commentMapper.getUcenterMemberByMemberId(id);
    }

}
